import 'dart:convert';

import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/captcha_get_entity.g.dart';
export 'package:safetymonitor/generated/json/captcha_get_entity.g.dart';

@JsonSerializable()
class CaptchaGetEntity {

	CaptchaGetEntity();

	factory CaptchaGetEntity.fromJson(Map<String, dynamic> json) => $CaptchaGetEntityFromJson(json);
	late String repCode = '';
	late String repMsg = '';
	late CaptchaGetRepData repData;
	late bool success = false;

	Map<String, dynamic> toJson() => $CaptchaGetEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CaptchaGetRepData {

	CaptchaGetRepData();

	factory CaptchaGetRepData.fromJson(Map<String, dynamic> json) => $CaptchaGetRepDataFromJson(json);
	late String secretKey = '';
	late String originalImageBase64 = '';
	late String jigsawImageBase64 = '';
	late String token = '';

	Map<String, dynamic> toJson() => $CaptchaGetRepDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}